package com.ruoyi.common.group.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.ruoyi.common.group.entity.YytGroupSkuRelation;
import com.ruoyi.common.group.dao.YytGroupSkuRelationMapper;
import com.ruoyi.common.group.service.YytGroupSkuRelationService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.pms.service.YytPmsSkuInfoService;
import com.ruoyi.vo.GroupSkuListVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* <p>
    *  服务实现类
    * </p>
*
* @author MrPing
* @since 2022-07-19
*/
@Service
public class YytGroupSkuRelationServiceImpl extends ServiceImpl<YytGroupSkuRelationMapper, YytGroupSkuRelation> implements YytGroupSkuRelationService {

    @Autowired
    private YytGroupSkuRelationMapper yytGroupSkuRelationMapper;

    @Autowired
    private YytPmsSkuInfoService yytPmsSkuInfoService;

    @Override
    public List<GroupSkuListVo> getSkuByGroupIdList(String groupId) {
        return yytGroupSkuRelationMapper.getSkuIds(groupId);
    }
}
